<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<fieldset class="layui-elem-field layui-field-title site-title">
		<legend>
			<a name="fixbar" style="font-size: 16px; color: #ce2424;">意见建议</a>
		</legend>
	</fieldset>
<div style="padding: 20px; background-color: #F2F2F2;">
  <div class="layui-row layui-col-space15">
    
    <div class="layui-col-md12">
      <div class="layui-card">
        <div class="layui-card-header layui-icon layui-icon-face-smile"  style="font-size: 18px; color: #e1944c;">   您的意见和建议对我们非常重要哦 </div>
        <div class="layui-card-body">
        	<form class="layui-form layui-form-pane" >
			  <div class="layui-form-item layui-form-text">
			    <label class="layui-form-label">问题反馈</label>
			    <div class="layui-input-block">
			      <textarea placeholder="请输入内容" class="layui-textarea" name="opinion"></textarea>
			    </div>
			  </div>
			  <div class="layui-form-item layui-form-text">
			    <label class="layui-form-label">整改意见</label>
			    <div class="layui-input-block">
			      <textarea placeholder="请输入内容" class="layui-textarea" name="proposal"></textarea>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <button class="layui-btn" lay-submit="" lay-filter="formDemo">提交反馈</button>
			  </div>
			</form>
        </div>
      </div>
    </div>
  </div>
</div> 
 <script>
layui.use('form', function(){
  var form = layui.form;
  
  form.on('submit(formDemo)', function(data){
	console.info(data.field);
    $.post('feedback/save',{opinion:data.field.opinion,proposal:data.field.proposal},function(result){
			
	});
    return false;
  });
});
</script>
</body>
</html>